<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="How Do I Manually Stop a TDSQL Restoration Job?">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002200060005.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002164818882">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>How Do I Manually Stop a TDSQL Restoration Job?</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002164818882"></a><a name="EN-US_TOPIC_0000002164818882"></a>
  <h1 class="topictitle1">How Do I Manually Stop a TDSQL Restoration Job?</h1>
  <div>
   <p>This section describes how to manually stop a TDSQL restoration job.</p>
   <div class="section">
    <h4 class="sectiontitle">Precautions</h4>
    <p>Stopping a running restoration job may affect the database environment or data on the production end. Exercise caution when performing this operation.</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Log in to all data nodes of the target instance for restoration as user <strong>root</strong>.</span></li>
     <li><span>Run the following commands to stop the restoration job:</span><p></p><p><strong>cd </strong><em>/opt</em><strong>/DataBackup/ProtectClient</strong></p> <p><strong>sh stop.sh</strong></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>In the preceding commands, <em>/opt</em> indicates the client installation directory. Replace it with the actual directory.</p>
       </div>
      </div> <p></p></li>
     <li><span>Choose <span class="uicontrol"><b>Jobs</b></span>.</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>For 1.5.0, choose .</p>
       </div>
      </div> <p></p></li>
     <li><span>Check the status of the restoration job. After the job status changes to <span><strong>Failed</strong></span>, log in to all data nodes of the target instance for restoration again and check whether the <em>4002</em><strong>_deploy.conf</strong> file exists.</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p><em>4002</em> in <em>4002</em><strong>_deploy.conf</strong> is the port used by the TDSQL storage node. Replace it with the actual port. The following operations use <em>4002</em><strong>_deploy.conf</strong> as an example.</p>
       </div>
      </div> <p><strong>cd /data/oc_agent/log/</strong></p> <p><strong>ll</strong><strong> |grep</strong> <strong>deploy</strong></p>
      <ul>
       <li>If the <em>4002</em><strong>_deploy.conf</strong> file exists, run the <strong>rm </strong><em>4002</em><strong>_deploy.conf</strong> command to delete the file, and then go to <a href="#EN-US_TOPIC_0000002164818882__li0733183812419">5</a>.</li>
       <li>If the <em>4002</em><strong>_deploy.conf</strong> file does not exist, go to <a href="#EN-US_TOPIC_0000002164818882__li0733183812419">5</a>.</li>
      </ul> <p></p></li>
     <li id="EN-US_TOPIC_0000002164818882__li0733183812419"><a name="EN-US_TOPIC_0000002164818882__li0733183812419"></a><a name="li0733183812419"></a><span>Run the following commands on all data nodes of the target instance for restoration to start the restoration job:</span><p></p><p><strong>cd </strong><em>/opt</em><strong>/DataBackup/ProtectClient</strong></p> <p><strong>sh start.sh</strong></p> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="en-us_topic_0000002200060005.html">FAQs</a>
    </div>
   </div>
  </div>
 </body>
</html>